package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.SyCostTypeDao;
import cn.com.bdqn.entity.SyCostType;
import cn.com.bdqn.service.SyCostTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SyCostTypeServiceImpl implements SyCostTypeService {

    @Autowired
    private SyCostTypeDao dao;

    @Override
    public List<SyCostType> queryByKind(Long kind) {
        return dao.queryByKind(kind);
    }

    @Override
    public SyCostType queryById(Long id) {
        return dao.queryById(id);
    }

    @Override
    public int updateSyCostType(SyCostType syCostType) {
        return dao.updateSyCostType(syCostType);
    }

    @Override
    public int addSyCostType(SyCostType syCostType) {
        return dao.addSyCostType(syCostType);
    }
}
